<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/common/taglibs.jsp" %>

<div class="page">
    <div class="pageContent">


        <form method="post" action="${ctx}/vip/vip-user!save.action" class="pageForm required-validate"
              onsubmit="return validateCallback(this, dialogAjaxDone)">
            <input type="hidden" name="id" value="${id}"/>

            <div class="pageFormContent" layoutH="70" id="user-accource">

                <div class="unit">
                    <label>姓名:</label>
                    <input type="text" name="userName" size="40" id="userName" class="required" value="${userName}"/>

                </div>

                <div class="unit">
                    <label>性别:</label>
                    <select name="sex">
                        <option value="男" <c:if test="${sex=='男'}">selected</c:if>>男</option>
                        <option value="女" <c:if test="${sex=='女'}">selected</c:if>>女</option>
                    </select>
                </div>


                <div class="unit">
                    <label>生日:</label>
                    <input type="textInput" name="birthday" size="40" id="birthday" class="required date"
                           value="${birthday}" datefmt="yyyy-MM-dd"/>
                </div>


                <div class="unit">
                    <label>手机:</label>
                    <input type="text" name="phone" size="40" id="phone" class="required phone" value="${phone}"/>
                </div>


                <div class="unit">
                    <label>地址:</label>
                    <input type="text" name="address" size="40" id="address" class="required" value="${address}"/>
                </div>


                <div class="unit">
                    <label>微信:</label>
                    <input type="text" name="weixin" size="40" id="weixin" class="required" value="${weixin}"/>
                </div>


                <div class="unit">
                    <label>余额:</label>
                    <input type="text" name="balance" size="40" id="balance" class="required number"
                           value="${balance}"/>
                </div>
                <div class="unit">
                    <label>备注:</label>
                    <input type="text" name="remark" size="40" id="remark" class="required" value="${remark}"/>
                </div>
                <div class="unit">
                    <label>状态:</label>
                    <select name="userStatus">
                        <option value="1" <c:if test="${userStatus==1}">selected</c:if>>正常</option>
                        <option value="2" <c:if test="${userStatus==2}">selected</c:if>>作废</option>
                    </select>
                </div>

            </div>

            <div class=" formBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit" class="toolBar-btn">提交</button>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="button">
                            <div class="buttonContent">
                                <button type="button" class="close toolBar-btn2">取消</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

        </form>

    </div>
</div>
